from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def guobu(self):
        ele=(By.XPATH,'//android.widget.TextView[@resource-id="com.achievo.vipshop:id/tab_text" and @text="国补"]')
        loc=self.find_ele(ele)
        return loc
    def gedi(self):
        ele=(By.XPATH,'//android.widget.FrameLayout[@resource-id="com.achievo.vipshop:id/fl_content"]/android.widget.RelativeLayout/android.widget.FrameLayout[4]')
        loc=self.find_ele(ele)
        return loc
    def dy(self):
        ele=(By.XPATH,'//android.widget.TextView[@text="北京市"]')
        loc=self.find_ele(ele)
        return loc
    def meizhuang(self):
        ele=(By.XPATH,'//android.widget.TextView[@resource-id="com.achievo.vipshop:id/tab_text" and @text="美妆"]')
        loc=self.find_ele(ele)
        return loc
    def mianmo(self):
        ele=(By.XPATH,'(//android.widget.FrameLayout[@resource-id="com.achievo.vipshop:id/la_view"])[2]/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout[4]/android.widget.FrameLayout')
        loc=self.find_ele(ele)
        return loc